<template>
	<!-- 暂时废弃，uni-indexed-list 不能在组件中使用，有bug -->
	<view @tap="onClickHide" style="height: 800rpx; background-color: rgba(0, 0, 0, 0.4);">
		<!-- ========================索引列表================================== -->
		<view class="container-bg" @tap.stop="hanshu">
			<view class="headersub">
				<text class="shengList-title">请选择高考省份</text>
				<image class="chacha" src="https://mcdn.chatgk.com/xcx/static/images/chancePageImg/gb.png" mode=""
					@tap.stop="onClickHide"></image>
			</view>
			<view class="maxPage-main">
				<uni-indexed-list style="padding-top: 100rpx" :options="list" :showSelect="false"
					@click="bindClicks"></uni-indexed-list>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		name: "shengList",
		props: {
			list: {
				type: Array,
				default: () => []
			}

		},
		data() {
			return {

			};
		},
		watch: {
			list: function(newValue) {}
		},
		methods: {
			hanshu() {},
			bindClicks(e) {
				this.$emit('bindClick', e)
			},
			onClickHide() {
				this.$emit('isshowBoxFalse')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.container-bg {
		position: fixed;
		top: 600rpx;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: #F8F8F8;
		height: calc(100vh - 600rpx);
		border-top-left-radius: 15rpx;
		border-top-right-radius: 15rpx;
		overflow: hidden;
	}

	.maxPage-main {
		width: 100%;
		height: 100%;
		// padding-bottom: 100rpx;
		background-color: white;
	}

	.headersub {
		height: 100rpx;
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 30rpx;
		box-sizing: border-box;
		background-color: white;

		.chacha {
			width: 50rpx;
			height: 50rpx;
			position: relative;
			z-index: 10;
		}
	}
</style>